// RS485CommDlg.h : header file
//

#if !defined(AFX_RS485COMMDLG_H__423D0A2D_3391_459D_B5F3_9767DD02F3D9__INCLUDED_)
#define AFX_RS485COMMDLG_H__423D0A2D_3391_459D_B5F3_9767DD02F3D9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000


/////////////////////////////////////////////////////////////////////////////
// CRS485CommDlg dialog

class CRS485CommDlg : public CDialog
{
// Construction
public:
	unsigned long count[9];
	CRS485CommDlg(CWnd* pParent = NULL);	// standard constructor

	void detectStatus(unsigned char* ch,int n);
	void DrawCar();
	void DrawPark();

	BOOL node[9];
	BOOL car[9];

	unsigned char bind[9][5];
	//node[0] car[0] not use



// Dialog Data
	//{{AFX_DATA(CRS485CommDlg)
	enum { IDD = IDD_RS485COMM_DIALOG };
	CString	m_text;
	UINT	m_com;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CRS485CommDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CRS485CommDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnSend();
	afx_msg void OnReceive();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButton1();
	afx_msg BOOL OnEraseBkgnd(CDC* pDC);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_RS485COMMDLG_H__423D0A2D_3391_459D_B5F3_9767DD02F3D9__INCLUDED_)
